package cn.com.xinjinfu.pdoulcProduct.utils;

import cn.com.xinjinfu.pdoulcProduct.R;

/**
 * Created by android-adt on 2016/3/1.
 */
public class BankImgUtils {


    public int mBank(boolean bg, String bankcode) {
        int color;
        int resimg;
        switch (bankcode) {
            case "01020000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.zggsbank;
                break;
            case "01030000":
                color = 0xFF169274;
                resimg = R.drawable.zgnybank;
                break;
            case "01040000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.zgbank;
                break;
            case "01050000":
                color = 0xFF003A8F;
                resimg = R.drawable.zgjsbank;
                break;
            case "03020000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.zxbank;
                break;
            case "03030000":
                color = 0xFF8957A1;
                resimg = R.drawable.zggdbank;
                break;
            case "03040000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.hxbank;
                break;
            case "03050000":
                color = 0xFF003A8F;
                resimg = R.drawable.zgmsbank;
                break;
            case "03060000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.gfbank;
                break;
            case "03070000":
                color = 0xFFE9680F;
                resimg = R.drawable.zgpabank;
                break;
            case "03080000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.zsbank;
                break;
            case "03090000":
                color = 0xFF003A8F;
                resimg = R.drawable.xybank;
                break;
            case "03100000":
                color = 0xFF003A8F;
                resimg = R.drawable.shpfbank;
                break;
            case "03010000":
                color = 0xFF003A8F;
                resimg = R.drawable.jtbank;
                break;
            case "01000000":
                color = 0xFF169274;
                resimg = R.drawable.yzbank;
                break;
            case "04233310":
                color = 0xFF169274;
                resimg = R.drawable.hangzhoubank;
                break;
            case "04012900":
                color = 0xFF003A8F;
                resimg = R.drawable.shanghaibank;
                break;
            case "04031000":
                color = 0xFF329EFA;
                resimg = R.drawable.beijingbank;
                break;
            case "03160000":
                color = 0xFFFF5B5A;
                resimg = R.drawable.zheshangbank;
                break;
            case "64135810":
                color = 0xFFFF5B5A;
                resimg = R.drawable.gzbank;
                break;
            default:
                resimg = R.drawable.img_circle_gray;
                color = 0xFF6ED3D6;
                break;
        }
        if (bg) {
            return color;
        } else {
            return resimg;
        }
    }
}
